<template>
  <div class="header bax">
    <div class="icon"></div>
    <h2 class="text">我的网易</h2>
    <router-link tag="div" class="mine" to="/user">
      <i class="icon-mine"></i>
    </router-link>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  }
};
</script>
<style lang="scss" rel="stylesheet/scss">
  @import "@/assets/style/mixin.scss";
.header {
  position: relative;
  height: 44px;
  text-align: center;
  background-color: rgb(240, 20, 20);
  font-size: 0;
  .icon {
    display: inline-block;
    vertical-align: top;
    width: 32px;
    height: 32px;
    margin: 6px 9px 0 0;
    @include bg-img('logo');
    border-radius: 50%;
    background-size: 32px 32px;
    background-repeat: no-repeat;
  }
  .text {
    display: inline-block;
    vertical-align: top;
    margin-top: 6px;
    line-height: 32px;
    font-size: 14px;
    color: #ffcd32;
  }
  .mine{
    position: absolute;
    top: 0;
    right: 0;
    .icon-mine {
      display: block;
      padding: 12px;
      font-size: 20px;
      color: #fff;
    }
  }
  .active {
    .icon-mine{
      color: #ffcd32;
    }
  }
}
</style>
